package com.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.dao.NewBookDao;
import com.entity.NewBook;
@Repository
public class NewBookDaoImpl extends BaseDaoImpl implements NewBookDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<NewBook> getNewBooks() {
		String hql="from NewBook";
		return this.getSession().createQuery(hql).list();
	}

}
